/*     */ package com.newcrm.webapi;
/*     */ 
/*     */ import com.newcrm.exception.NotFoundException;
/*     */ import com.newcrm.util.ParameterUtil;
/*     */ import com.newcrm.util.Util;
/*     */ import com.newcrm.webapi.sub.ListSearchNote;
/*     */ import com.newcrm.webapi.sub.SearchAllNote;
/*     */ import java.io.IOException;
/*     */ import javax.servlet.RequestDispatcher;
/*     */ import javax.servlet.ServletException;
/*     */ import javax.servlet.http.HttpServletRequest;
/*     */ import javax.servlet.http.HttpServletResponse;
/*     */ 
/*     */ public class SearchNote extends AbstractHttpServlet
/*     */ {
/*     */   private static final long serialVersionUID = -4484947050413644672L;
/*     */ 
/*     */   public void doGet(HttpServletRequest request, HttpServletResponse response)
/*     */     throws ServletException, IOException
/*     */   {
/*  45 */     if (!checkLogin(request)) {
/*  46 */       super.showLoginPage(request, response);
/*  47 */       return;
/*     */     }
/*     */ 
/*  50 */     String url = request.getRequestURI();
/*  51 */     String[] param = ParameterUtil.getParameters(url, getTagkey());
/*     */     try
/*     */     {
/*  54 */       String operation = Util.getURLParameter(request
/*  55 */         .getParameter("operation"));
/*  56 */       if (((param == null) || (param.length == 0)) && (
/*  57 */         (operation == null) || (operation.trim().length() == 0))) {
/*  58 */         new ListSearchNote(this).parse(request, response);
/*  59 */         return;
/*     */       }
/*     */ 
/*  63 */       if ((param != null) && (param.length == 1))
/*     */       {
/*  66 */         if ("search".equals(param[0])) {
/*  67 */           new SearchAllNote(this).parse(request, response);
/*  68 */           return;
/*     */         }
/*     */       }
/*     */     }
/*     */     catch (NotFoundException e) {
/*  73 */       request.getRequestDispatcher("/errorpage.jsp").forward(request, 
/*  74 */         response);
/*  75 */       return;
/*     */     }
/*  77 */     super.doGet(request, response);
/*     */   }
/*     */ 
/*     */   protected AbstractAction getAddAction()
/*     */   {
/*  82 */     return null;
/*     */   }
/*     */ 
/*     */   protected AbstractAction getDeleteAction(String id)
/*     */   {
/*  87 */     return null;
/*     */   }
/*     */ 
/*     */   protected AbstractAction getListAction()
/*     */   {
/*  92 */     return null;
/*     */   }
/*     */ 
/*     */   protected AbstractAction getShowAction(String id)
/*     */   {
/*  97 */     return null;
/*     */   }
/*     */ 
/*     */   protected AbstractAction getShowAddPageAction()
/*     */   {
/* 102 */     return null;
/*     */   }
/*     */ 
/*     */   protected AbstractAction getShowConfirmDestroyAction(String id)
/*     */   {
/* 107 */     return null;
/*     */   }
/*     */ 
/*     */   protected AbstractAction getShowUpdatePageAction(String id)
/*     */   {
/* 112 */     return null;
/*     */   }
/*     */ 
/*     */   protected String getTagkey()
/*     */   {
/* 117 */     return "/searchnote";
/*     */   }
/*     */ 
/*     */   protected AbstractAction getUpdateAction(String id)
/*     */   {
/* 122 */     return null;
/*     */   }
/*     */ }

/* Location:           C:\E\referenceProject\CRM参考\qikebao\WEB-INF\lib\qikebao.jar
 * Qualified Name:     com.newcrm.webapi.SearchNote
 * JD-Core Version:    0.6.1
 */